package com.cool.mybatis.entity;

import java.util.List;

/**
 * @Author ifredomvip@gmail.com
 * @Date 2022/5/25 15:31
 * @Version 1.0.0
 * @Description
 **/
public class Dept {
    private Integer did;
    private String deptName;
    private List<Emp> employees;

    @Override
    public String toString() {
        return "Dept{" +
                "did=" + did +
                ", deptName='" + deptName + '\'' +
                ", employees=" + employees +
                '}';
    }

    public List<Emp> getEmployees() {
        return employees;
    }

    public void setEmployees(List<Emp> employees) {
        this.employees = employees;
    }

    public Dept(Integer did, String deptName) {
        this.did = did;
        this.deptName = deptName;
    }

    public Dept() {
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
}
